﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace GeometryViz3D.Model
{
    public class G3DLine : G3DElement
    {
        public G3DPoint StartPoint
        {
            get;
            set;
        }

        public G3DPoint EndPoint
        {
            get;
            set;
        }

        public Color Color
        {
            get;
            set;
        }

        public override bool Equals(object obj)
        {
            G3DLine other = obj as G3DLine;
            if (other == null)
                return false;

            return this.Label == other.Label;
        }

        public override int GetHashCode()
        {
            return this.Label.GetHashCode();
        }

        public override string ToString()
        {
            return string.Format("Line {0} ({1}, {2}) {3}", Label, StartPoint, EndPoint, Color);
        }
    }
}
